//---------------------------------------------------------------------------
#include <vcl.h>
#pragma hdrstop
USERES("geph.res");
USERES("logos.res");
USELIB("impborl.lib");
USELIB("..\..\LIB\QuickPdfRT_C5.lib");
USELIB("..\..\Lib\wininet.lib");
USELIB("..\Lib\PHVCL\phunzip.lib");
USEUNIT("..\Lib\PHVCL\CriptoNet.cpp");
USEUNIT("..\lib\Indy\IdMessage.pas");
USEUNIT("..\lib\Indy\IdPOP3.pas");
USEUNIT("..\lib\Indy\IdSMTP.pas");
USEUNIT("..\lib\Indy\IdSSLOpenSSL.pas");
USEUNIT("..\lib\Indy\IdSSLOpenSSLHeaders.pas");
USEUNIT("..\Lib\PHVCL\HtmlHelper.cpp");
USEFORM("..\lib\phvcl\AnotaW.CPP", AnotaW1);
USEFORM("..\lib\phvcl\Bloque.cpp", Bloqueio);
USEFORM("..\lib\phvcl\Cadpad.cpp", CadPad1);
USEFORM("..\Lib\PHVCL\DIALPAD.CPP", DiPad);
USEFORM("..\lib\phvcl\DPAtalho.cpp", DPAtalho1);
USEFORM("..\lib\phvcl\DPCnsLog.cpp", DPCnsLog1);
USEFORM("..\lib\phvcl\DPCopy.cpp", DPCopy1);
USEFORM("..\lib\phvcl\DPDtRela.cpp", DPDtRela1);
USEFORM("..\Lib\PHVCL\DPImpEmp.cpp", DPImpEmp1);
USEFORM("..\lib\phvcl\DPRestor.cpp", DPRestor1);
USEFORM("..\lib\phvcl\DPSbCnt.cpp", DPSbCnt1);
USEFORM("..\lib\phvcl\DPVrfErr.cpp", DPVrfErr1);
USEFORM("..\LIB\PHVCL\Evolucao.cpp", Evolucao1);
USEFORM("..\lib\phvcl\Exporta.cpp", Exporta1);
USEFORM("..\Lib\PHVCL\ImpCDRfb.cpp", ImpCdRFB1);
USEFORM("..\lib\phvcl\MtOrdem.cpp", MtOrdem1);
USEFORM("..\lib\phvcl\NovNot.cpp", NovNot1);
USEFORM("..\lib\phvcl\OpCadPad.cpp", OpCadPad1);
USEFORM("..\lib\phvcl\OpRecup.cpp", OpRecup1);
USEFORM("..\lib\phvcl\PedSen.cpp", PedeSenha);
USEFORM("..\lib\phvcl\PRelEdi.CPP", ProRelEdi1);
USEFORM("..\lib\phvcl\PrmArq.cpp", ParamArquivos);
USEFORM("..\lib\phvcl\Procura.cpp", Procura1);
USEFORM("..\lib\phvcl\ProjPH.cpp", Procura1);
USEFORM("..\lib\phvcl\RecCRC.cpp", RecCRC1);
USEFORM("..\lib\phvcl\RecEmp.cpp", RecEmp1);
USEFORM("..\lib\phvcl\Recup.cpp", Recup1);
USEFORM("..\lib\phvcl\Reindex.cpp", ReindexaGeral);
USEFORM("..\lib\phvcl\Relatori.cpp", Relatori1);
USEFORM("..\LIB\PHVCL\RelDocW.cpp", RelDocW1);
USEFORM("..\lib\phvcl\RelEdi.cpp", RelEdi1);
USEFORM("..\lib\phvcl\RelExp.cpp", RelExp1);
USEFORM("..\lib\phvcl\RelPad.cpp", RelPad1);
USEFORM("..\lib\phvcl\RelTotz.cpp", RelTotz1);
USEFORM("..\lib\phvcl\RelVerif.cpp", RelVerif1);
USEFORM("..\lib\phvcl\RLVrfErr.cpp", RLVrfErr1);
USEFORM("..\lib\phvcl\SelEmp.cpp", SelEmpresas);
USEFORM("..\lib\phvcl\TotCamp.cpp", TotCamp1);
USEFORM("..\lib\phvcl\TpRelPad.cpp", TpRelPad1);
USEFORM("..\lib\phvcl\Verif.cpp", VerificaGeral);
USEFORM("..\lib\phvcl\VerifDad.cpp", VerifDad1);
USEFORM("Acessa.cpp", Acessa1);
USEFORM("CPAdFunc.cpp", CPAdFunc1);
USEFORM("CPBancos.cpp", CPBancos1);
USEFORM("CPCli.cpp", CPCli1);
USEFORM("CPCntPg.cpp", CPCntPg1);
USEFORM("CPContr.cpp", CPContr1);
USEFORM("CPCustos.cpp", CPCustos1);
USEFORM("CPFat.cpp", CPFat1);
USEFORM("CPForn.cpp", CPForn1);
USEFORM("CPInd.cpp", CPInd1);
USEFORM("CPModCtrSoc.cpp", CPModCtrSoc1);
USEFORM("CPMvCtr.cpp", CPMvCtr1);
USEFORM("CPNegativas.cpp", CPNegativas1);
USEFORM("CPNotas.cpp", CPNotas1);
USEFORM("CPPesos.cpp", CPPesos1);
USEFORM("CPPgto.cpp", CPPgto1);
USEFORM("CPRecbto.cpp", CPRcbto1);
USEFORM("CPRecib.cpp", CPRecib1);
USEFORM("CPRecibCobr.cpp", CPRecibCobr1);
USEFORM("CPRet.cpp", CPRet1);
USEFORM("CPServ.cpp", CPServ1);
USEFORM("CPServEx.cpp", CPServEx1);
USEFORM("CPServPer.cpp", CPServPer1);
USEFORM("CPTiposNegativas.cpp", CPTiposNegativas1);
USEFORM("CPUsuPH.cpp", CPUsuPH1);
USEFORM("DM_DPPH1.cpp", DM_DPPH); /* TDataModule: File Type */
USEFORM("DM_EFPH1.cpp", DM_EFPH); /* TDataModule: File Type */
USEFORM("DMAdFunc.cpp", DMAdFunc1); /* TDataModule: File Type */
USEFORM("DMAniver.cpp", DMAniver1); /* TDataModule: File Type */
USEFORM("DMBancos.cpp", DMBancos1); /* TDataModule: File Type */
USEFORM("DMCfURL.cpp", DMCfURL1); /* TDataModule: File Type */
USEFORM("DMCheq.cpp", DMCheq1); /* TDataModule: File Type */
USEFORM("DMCli.cpp", DMCli1); /* TDataModule: File Type */
USEFORM("DMCnsSrv.cpp", DMCnsSrv1); /* TDataModule: File Type */
USEFORM("DMCntPg.cpp", DMCntPg1); /* TDataModule: File Type */
USEFORM("DMContr.cpp", DMContr1); /* TDataModule: File Type */
USEFORM("DMCtrSociais.cpp", DMCtrSociais1); /* TDataModule: File Type */
USEFORM("DMCustos.cpp", DMCustos1); /* TDataModule: File Type */
USEFORM("DMFat.cpp", DMFat1); /* TDataModule: File Type */
USEFORM("DMForn.cpp", DMForn1); /* TDataModule: File Type */
USEFORM("DMInd.cpp", DMInd1); /* TDataModule: File Type */
USEFORM("DMMvCtr.cpp", DMMvCtr1); /* TDataModule: File Type */
USEFORM("DMNegativas.cpp", DMNegativas1); /* TDataModule: File Type */
USEFORM("DMNotas.cpp", DMNotas1); /* TDataModule: File Type */
USEFORM("DModule.cpp", DM);
USEFORM("DMPgto.cpp", DMPgto1); /* TDataModule: File Type */
USEFORM("DMRcbto.cpp", DMRcbto1); /* TDataModule: File Type */
USEFORM("DMRecCbr.cpp", DMRecCbr1); /* TDataModule: File Type */
USEFORM("DMRecib.cpp", DMRecib1); /* TDataModule: File Type */
USEFORM("DMRet.cpp", DMRet1); /* TDataModule: File Type */
USEFORM("DMServ.cpp", DMServ1); /* TDataModule: File Type */
USEFORM("DMServEx.cpp", DMServEx1); /* TDataModule: File Type */
USEFORM("DMServPer.cpp", DMServPer1); /* TDataModule: File Type */
USEFORM("DMUsuPH.cpp", DMUsuPH1); /* TDataModule: File Type */
USEFORM("DPAniver.cpp", DPAniver1);
USEFORM("DPBol.cpp", DPBol1);
USEFORM("DPCfURL.cpp", DPCfURL1);
USEFORM("DPCnsBnc.cpp", DPCnsBnc1);
USEFORM("DPCnsChq.cpp", DPCnsChq1);
USEFORM("DPCnsCustos.cpp", DPCnsCustos1);
USEFORM("DPCnsCx.cpp", DPCnsCx1);
USEFORM("DPCnsFluCx.cpp", DPCnsFluCx1);
USEFORM("DPCnsInf.cpp", DPCnsInf1);
USEFORM("DPCnsMCI.cpp", DPCnsMCI1);
USEFORM("DPCnsMFr.cpp", DPCnsMFr1);
USEFORM("DPCnsNegativas.cpp", DPCnsNegativas1);
USEFORM("DPCnsPag.cpp", DPCnsPag1);
USEFORM("DPCnsRec.cpp", DPCnsRec1);
USEFORM("DPCnsSrv.cpp", DPCnsSrv1);
USEFORM("DPConfUsu.cpp", DPConfUsu1);
USEFORM("DPEmail.cpp", DPEmail1);
USEFORM("DPEmiCtrSoc.cpp", DPEmiCtrSoc1);
USEFORM("DPEmiFat.cpp", DPEmiFat1);
USEFORM("DPEmiRec.cpp", DPEmiRec1);
USEFORM("DPExpPH.cpp", DPExpPH1);
USEFORM("DPExpSCPH.cpp", DPExpSCPH1);
USEFORM("DPGFat.cpp", DPGFat1);
USEFORM("DPGrfSrv.cpp", DPGrfSrv1);
USEFORM("DPImpRetBol.cpp", DPImpRetBol1);
USEFORM("DPPdData.cpp", DPPdData1);
USEFORM("DPRelClientes.cpp", DPRelClientes1);
USEFORM("DPTesteBol.cpp", DPTesteBol1);
USEFORM("Empresas.cpp", CPEmpresas);
USEFORM("Entrada1.cpp", Entrada);
USEFORM("FConv.cpp", FConv1);
USEFORM("FRecEmp.cpp", FRecEmp1);
USEFORM("Princ.CPP", Principal1);
USEFORM("RLAniver.cpp", RLAniver1);
USEFORM("RLBol.cpp", RLBol1);
USEFORM("RlCnsBnc.cpp", RLCnsBnc1);
USEFORM("RLCnsCDet.cpp", RLCnsCDet1);
USEFORM("RLCnsChq.cpp", RLCnsChq1);
USEFORM("RLCnsCustos.cpp", RLCnsCustos1);
USEFORM("RLCNSCX.CPP", RLCnsCx1);
USEFORM("RLCnsFluCx.cpp", RLCnsFluCx1);
USEFORM("RLCnsMCl.cpp", RLCnsMCI1);
USEFORM("RLCnsMFr.cpp", RLCnsMFr1);
USEFORM("RLCnsNegativas.cpp", RLCnsNegativas1);
USEFORM("RlCnsPag.cpp", RLCnsPag1);
USEFORM("RLCnsRec.cpp", RLCnsRec1);
USEFORM("RLCNSSRV.cpp", RLCnsSrv1);
USEFORM("RLCnsSrvGrf.cpp", RLCnsSrvGrf1);
USEFORM("RLEmiFat.cpp", RLEmiFat1);
USEFORM("RLFat.cpp", RLFat1);
USEFORM("RLListaBolGer.cpp", RLListaBolGer1);
USEFORM("RLRelCli.cpp", RLRelCli1);
USEFORM("SenhaOpc.cpp", CPSenhasOpcoes);
USEFORM("Senhas.cpp", CPSenhas);
USEFORM("SenhaSel.cpp", CPSenhaSel);
USEFORM("Senhatab.cpp", CPSenhasTabelas);
USEUNIT("Emissao.cpp");
USEUNIT("Geracao.cpp");
USEUNIT("GeracaoCtrSociais.cpp");
USEUNIT("GrvPH1.cpp");
USEUNIT("GrvSCPH1.cpp");
USEUNIT("PHEmail.cpp");
USEUNIT("PHEtiqueta.cpp");
USEUNIT("PHSmtp.cpp");
USEUNIT("ProcessaReajustes.cpp");
USEUNIT("TBolBancoob1.cpp");
USEUNIT("TBolBanrisul1.cpp");
USEUNIT("TBolBB1.cpp");
USEUNIT("TBolBesc1.cpp");
USEUNIT("TBolCEF1.cpp");
USEUNIT("TBoleto1.cpp");
USEUNIT("TBolItau1.cpp");
USEUNIT("TBolSicredi1.cpp");
USEUNIT("TExpPH1.cpp");
USEUNIT("TExpPHNormal1.cpp");
USEUNIT("TGeracaoPeriodicos1.cpp");
USEUNIT("TRawPrint1.cpp");
USEUNIT("TBolBradesco.cpp");
//---------------------------------------------------------------------------
#include "Entrada1.h"

//---------------------------------------------------------------------------
WINAPI WinMain( HINSTANCE, HINSTANCE, LPSTR, int )
{
  try
   {
    Entrada = new TEntrada( Application );
    Entrada->Show();
    Entrada->Update();
    Application->ProcessMessages();
    Application->Initialize();
    Application->Title = "GEPH";
    Application->HelpFile = "";
    Application->CreateForm(__classid(TDM), &DM);
                 Application->CreateForm(__classid(TDM_DPPH), &DM_DPPH);
                 Application->CreateForm(__classid(TDM_EFPH), &DM_EFPH);
                 Application->CreateForm(__classid(TDMAdFunc1), &DMAdFunc1);
                 Application->CreateForm(__classid(TDMAniver1), &DMAniver1);
                 Application->CreateForm(__classid(TDMBancos1), &DMBancos1);
                 Application->CreateForm(__classid(TDMCfURL1), &DMCfURL1);
                 Application->CreateForm(__classid(TDMCheq1), &DMCheq1);
                 Application->CreateForm(__classid(TDMCli1), &DMCli1);
                 Application->CreateForm(__classid(TDMCnsSrv1), &DMCnsSrv1);
                 Application->CreateForm(__classid(TDMPgto1), &DMPgto1);
                 Application->CreateForm(__classid(TDMCntPg1), &DMCntPg1);
                 Application->CreateForm(__classid(TDMContr1), &DMContr1);
                 Application->CreateForm(__classid(TDMCtrSociais1), &DMCtrSociais1);
                 Application->CreateForm(__classid(TDMCustos1), &DMCustos1);
                 Application->CreateForm(__classid(TDMFat1), &DMFat1);
                 Application->CreateForm(__classid(TDMForn1), &DMForn1);
                 Application->CreateForm(__classid(TDMInd1), &DMInd1);
                 Application->CreateForm(__classid(TDMMvCtr1), &DMMvCtr1);
                 Application->CreateForm(__classid(TDMNegativas1), &DMNegativas1);
                 Application->CreateForm(__classid(TDMNotas1), &DMNotas1);
                 Application->CreateForm(__classid(TDMRcbto1), &DMRcbto1);
                 Application->CreateForm(__classid(TDMRecCbr1), &DMRecCbr1);
                 Application->CreateForm(__classid(TDMRecib1), &DMRecib1);
                 Application->CreateForm(__classid(TDMRet1), &DMRet1);
                 Application->CreateForm(__classid(TDMServ1), &DMServ1);
                 Application->CreateForm(__classid(TDMServEx1), &DMServEx1);
                 Application->CreateForm(__classid(TDMServPer1), &DMServPer1);
                 Application->CreateForm(__classid(TDMUsuPH1), &DMUsuPH1);
                 Application->CreateForm(__classid(TPrincipal1), &Principal1);
                 Application->CreateForm(__classid(TAcessa1), &Acessa1);
                 Application->CreateForm(__classid(TEvolucao1), &Evolucao1);
                 Entrada->Release();
    Application->Run();
   }
  catch( Exception & exception )
   {
    Application->ShowException( &exception );
   }
  return 0;
}
//---------------------------------------------------------------------------

